package com.yanzhang.util;

public class PageUtil {

    public static int getTotalPage(int pageSize, int totalCount) {
        if (totalCount % pageSize == 0) {
            return totalCount / pageSize;
        } else {
            return totalCount / pageSize + 1;
        }
    }
}
